package com.zsrt.java.day20161223.zsh.demo08;

import org.junit.Test;

public class demo8 {
	@Test
	public void squareStar(){
		
		for(int first=1;first<=4;first++){
			for(int second=1;second<=4-first;second++){
				System.out.print(" ");
			}
			for(int h=1;h<=2*first-1;h++){
				System.out.print("*");
			}
			System.out.println();
		}
		
		for(int first=1;first<=3;first++){
			for(int second=1;second<=first;second++){
				System.out.print(" ");
			}
			for(int h=1;h<=7-2*first;h++){
				System.out.print("*");
			}
			System.out.println();
		}
		
	}


}
